import service from '@/utils/request'

export const essaySubmitApi = (data) => {
  if (data.id) {
    return service.put('/gps/articleMsg/update', data)
  }
  return service.post('/gps/articleMsg/save', data)
}
export const getEssayApi = (id) => {
  return service.get('/gps/articleMsg/info/' + id)
}
